package org.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BatteryStatusInfo {
    private String packNo;//电池包编号
    private Integer onOffStatus;//在线离线状态
    private Integer chargeStatus;//充放电状态
    private Double rackTotalVoltage;//当前总电压
    private Integer rackMaxCellVoltage;//单体最高电压
    private Integer rackMaxVolCellID;//单体最高电压对应序号
    private Integer rackMinCellVoltage;//单体最低电压
    private Integer rackMinVolCellID;//单体最低电压对应序号
    private Double rackAverageVoltage;//单体平均电压
    private String collectTime;//最后采集时间yyyy-MM-dd HH:mm:ss
    private Double rackSOC;//当前电量
    private Double rackSOH;//电池健康值
    private Integer boardTemp;//板卡温度
    private Double cellHightTemp;//电芯最高温度
    private Double cellLowTemp;//电芯最低温度
    private Integer envTemp;//环境温度

    private String bms;//软件版本号
    private String sn;//实际上是imei
    private String bmscat;//1-硬件版，0-软件
    private String loc;//N23.123456,E132.123456
    private List<Integer> cellList;//单体电压列表
    private Integer tempMos;//MOS温度
    private Integer tempEnv;//环境温度
    private Integer tempC1;//电芯温度1
    private Integer tempC2;//电芯温度2
    //报警判断，1是0否
    private Integer bmsTempH;//bms温度过高
    private Integer cellTempL;//电芯温度过低
    private Integer cellTempH;//电芯温度过高
    private Integer cellUv;//电芯欠压
    private Integer disChargeOc;//放电过流
    private Integer sc;//短路
    private Integer cellOv;//电芯过压
    private Integer chargeOc;//充电过流
    private Integer balance;//均衡开关1开0关，默认1

}
